#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void biao(int a)
{
	int sum = 0;
	for (int i = 1; i <=a; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			sum = i * j;
			printf("%d*%d=%d ",j,i,sum);
		}
		printf("\n");
	}
}
int main()
{
	int a = 0;
	scanf("%d", &a);
	biao(a);
	return 0;
}